package org.xczy.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.xczy.core.entity.User;
import org.xczy.core.vo.LoginVo;
import org.xczy.core.vo.UserVo;

import java.util.Map;

/**
* @author Administrator
* @description 针对表【user】的数据库操作Service
* @createDate 2023-05-07 13:34:26
*/
public interface UserService extends IService<User> {

  /**
   * 用户登录
   * @param loginVo
   * @return
   */
  Map<String, Object> login(LoginVo loginVo);

  /**
   * 获取用户信息
   * @param token
   * @return
   */
  Map<String, Object> getUserInfo(String token);

  void logout(String token);

  int addUser(UserVo userVo);

  int updateUser(User use);

  User getUserById(Integer id);

  int deleteUserById(Integer id);
}
